#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/5/13 17:37
# @Author : 吴敬超
# explain:

import pandas as pd
import threading
import numpy as np
import netCDF4 as nc
import datetime
import csv
import time as ti
import glob
import multiprocessing
import json
import logging
import sys


pycsjson = {
    "infile": "D:/ehlocean/data/TEMPSALT/B.E.13.B1850C5.ne120_t12.sehires38.003.sunway_02.rtm.h0.0022-02.nc",
    "variablename": "QCHANR",
    "variablekeys": ["time", "lat", "lon"],
    "csvhead": ["time", "lat", "lon"],
    "outfile": "D:/fiecsv/BE/BE0022-02.csv"
}

json_str = json.dumps(pycsjson)

csjx = json.loads(json_str)
infile = csjx["infile"]
variablename = csjx["variablename"]
variablekeys = csjx["variablekeys"]
csvhead = csjx["csvhead"]
outfile = csjx["outfile"]

print infile
print variablename
print type(variablekeys)
print variablekeys

print type(csvhead)

print csvhead

print outfile
